package model

import (
	"time"
	"wzgames/internal/model/mcomm"
)

type SysAgent struct {
	AgtId      int64            `db:"agtid"`
	AgtKey     string           `db:"agtkey"`
	AgtName    string           `db:"agtname"`
	AgtLinKey  string           `db:"agtlinkey"`
	StartTime  int64            `db:"starttime"`
	EndTime    int64            `db:"endtime"`
	Status     mcomm.Status     `db:"status"`
	ASect      string           `db:"asect"`
	WalletType mcomm.WalletType `db:"walletype"`
	CurrList   string           `db:"currlist"`
	Cfg        []byte           `db:"cfg"`
	Remark     string           `db:"remark"`
	Created    time.Time        `db:"created"`
	Updated    time.Time        `db:"updated"`
}

type SysAgentGameInst struct {
	InstId     int64        `db:"instid"`
	AgtId      int64        `db:"agtid"`
	AllowGuest int8         `db:"guest"`
	Status     mcomm.Status `db:"status"`
	Cfg        []byte       `db:"cfg"`
	Created    time.Time    `db:"created"`
	Updated    time.Time    `db:"updated"`
}

type SysAgentFromBInfo struct {
	AgtId   int64     `db:"agtid"`
	B4Gid   string    `db:"b4gid"`
	B4GSect string    `db:"b4gsect"`
	Cfg     []byte    `db:"cfg"`
	Created time.Time `db:"created"`
	Updated time.Time `db:"updated"`
}
